import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Home from '@/page/Home'
import Login from '@/page/Login'
import Register from '@/page/Register'
import MoreIndex from '@/page/MoreIndex'
import StockIndex from '@/page/StockIndex'
import Plan from '@/page/Plan'
import Discuss from '@/page/Discuss'
import News from '@/page/News'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // }
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/moreindex',
      name: 'MoreIndex',
      component: MoreIndex
    },
    {
      path: '/stockindex',
      name: 'StockIndex',
      component: StockIndex
    },
    {
      path: '/plan',
      name: 'Plan',
      component: Plan
    },
    {
      path: '/discuss',
      name: 'Discuss',
      component: Discuss
    },
    {
      path: '/news',
      name: 'News',
      component: News
    }
  ]
})
